package service

import (
	commonTools "algo-sdk-go/common/tools"
	"algo-sdk-go/project/matchmaking/application/command"
	"algo-sdk-go/project/matchmaking/common/constant"
	"algo-sdk-go/project/matchmaking/domain/models/entity"
)

func AppendUserProfile(user entity.UserProfile, cmd command.AppendUserprofileCommand) *entity.UserProfile {
	var (
		userEntity = &entity.UserProfile{
			UserNum:        user.UserNum,
			UserAvatar:     cmd.UserAvatar,
			Name:           "",
			Gender:         user.Gender,
			BirthDate:      cmd.BirthDate,
			Age:            0,
			ChineseZodiac:  "",
			Height:         cmd.Height,
			Weight:         cmd.Weight,
			BMIDesc:        "",
			MaritalStatus:  "",
			Education:      cmd.Education,
			EducationLevel: 0,
			Assets: constant.AssetInfo{
				AnnualIncome: cmd.Assets.AnnualIncome,
				Car:          cmd.Assets.Car,
				House:        cmd.Assets.House,
			},
			IsPartyMember:    false,
			Occupation:       cmd.Occupation,
			Hometown:         "",
			CurrentResidence: cmd.CurrentResidence,
			FamilyInfo:       constant.FamilyInfo{},
			Status:           "",
			Verified:         0,
			CreateUser:       "",
			CreateTime:       "",
			ModifyUser:       commonTools.TimeNowStr(),
			UpdateTime:       "",
		}
	)
	return userEntity
}
